import { get, post } from '@/utils/http'

export const loginByMobile = (params: { mobile: string; password: string }) => {
  return post('/api/system/auth/login', params)
}

export const logoutApi = () => {
  return post('/api/system/auth/logout')
}

export const registerApi = (data: any) => {
  return post('/api/system/acct/register',data)
}

export const getUserInfoApi = () =>{
  return get('/api/system/acct/info')
}